CFLAG= -std=c++11 -I ../../../../../build/release-install-cpp11/include/
LFLAG= -L../../../../../build/release-install-cpp11/lib -lmuduo_net -lmuduo_base -lpthread -ljsoncpp
all : server publish_client subscribe_client
server:server.cpp
	g++ -o $@ $^ $(CFLAG) $(LFLAG)
publish_client:publish_client.cpp
	g++ -o $@ $^ $(CFLAG) $(LFLAG)
subscribe_client:subscribe_client.cpp
	g++ -o $@ $^ $(CFLAG) $(LFLAG)
.PHONY:clean
clean:
	rm -f server publish_client subscribe_client